#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1


DEST1 = $(CURDIR)/debian/node-faucet/usr/bin
DEST2 = $(CURDIR)/debian/node-faucet/usr/lib/nodejs/
DEST3 = $(CURDIR)/debian/node-faucet/usr/share/doc/node-faucet/

install:
	mkdir -m 755 -p $(DEST1)
	mkdir -m 755 -p $(DEST2)
	mkdir -m 755 -p $(DEST3)
	install -m 755 $(CURDIR)/bin/cmd.js $(DEST1)/faucet
	install -m 755 $(CURDIR)/index.js $(DEST2)/node-faucet
	install -m 644 $(CURDIR)/debian/copyright $(DEST3)
	install -m 644 $(CURDIR)/debian/changelog $(DEST3)/changelog.Debian
	gzip -9 $(DEST3)/changelog.Debian
 
%: 
	dh $@ --nodejs

